package com.gasolinator.a.runner;

import android.util.Log;
import com.google.inject.Scopes;
import org.w3c.dom.css.Counter;
import roboguice.config.AbstractAndroidModule;
import roboguice.util.Ln;

import java.util.Date;

public class RobolectricSampleTestModule extends AbstractAndroidModule {

    @Override protected void configure() {
        bind(Date.class).toProvider(FakeDateProvider.class);
        bind(Counter.class).in(Scopes.SINGLETON);
        bind(Ln.BaseConfig.class).toInstance(new RobolectricLoggerConfig());
    }

    static class RobolectricLoggerConfig extends Ln.BaseConfig {
        public RobolectricLoggerConfig() {
            packageName = "robo";
            minimumLogLevel = Log.VERBOSE;
            scope = "ROBO";
        }
    }
}